package com.qiaofang.queue.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 〈一句话功能简述〉<br>
 * 〈功能详细描述〉
 * 所有的dto都要实现序列化不然下会都需要转化的，必须加入serialVersionUID
 *
 * @author xiaocaiwen
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class SendCommunicationData implements Serializable {
	/**
	 */
	private static final long serialVersionUID = 3170865180787868190L;

	private String companyUuid;//公司的Uuid 必填
	private Long userId;//v10需要传递这个userId 必填
	private String userUuid;//员工的Uuid 必填
	private String eventType;//参考event包下的格式 必填
	private Object businessData;//业务数据，（是对象的都要加序列化id）,最好都是字符串
	private String msgKey;//消息的业务标识

	//下面的字段都不需要设置
	private String msgId;//消息唯一性标识，没有就自动生成,v10和apollo采用这个对象，默认发送的消息都要加入这个
	private String traceId;//消息的发送id
	private String spanId;//消费的spanId;
	private String queueName;//消息队列

	public String getTraceId() {
		return traceId;
	}

	public void setTraceId(String traceId) {
		this.traceId = traceId;
	}

	public String getSpanId() {
		return spanId;
	}

	public void setSpanId(String spanId) {
		this.spanId = spanId;
	}

	public String getQueueName() {
		return queueName;
	}

	public void setQueueName(String queueName) {
		this.queueName = queueName;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getMsgKey() {
		return msgKey;
	}

	public void setMsgKey(String msgKey) {
		this.msgKey = msgKey;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCompanyUuid() {
		return companyUuid;
	}

	public void setCompanyUuid(String companyUuid) {
		this.companyUuid = companyUuid;
	}

	public String getUserUuid() {
		return userUuid;
	}

	public void setUserUuid(String userUuid) {
		this.userUuid = userUuid;
	}

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	public Object getBusinessData() {
		return businessData;
	}

	public void setBusinessData(Object businessData) {
		this.businessData = businessData;
	}

	private boolean useTestQueue;

	public boolean isUseTestQueue() {
		return useTestQueue;
	}

	public void setUseTestQueue(boolean useTestQueue) {
		this.useTestQueue = useTestQueue;
	}

}
